package com.ch01.factory;

import com.ch01.service.UserService;
import com.ch01.service.impl.StudentServiceImpl;

/**
 * @ClassName StudentServiceFactory
 * @Description 自定义静态工厂
 * @Author Kx
 * @Date 2025/4/27 9:58
 * @Version 1.0
 */
public class StudentServiceFactory {
    /***
     * @author: kx
     * @date: 2025/4/27 10:00
     * @return com.ch01.service.UserService
     * @description: 让spring容器调用静态方法创建Bean
    */
    public static UserService create() {
        return new StudentServiceImpl();
    }
}
